<?php 
    @session_start();
    require_once("site/include/utils_site.php"); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Online Logistics</title>
<link href="./include/css/site_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="include/javascript/validations.js"></script>
<script type="text/javascript" src="include/javascript/languages/LANG_romana.js"></script>
</head>
<body>
<?php 
    renderSiteHeader();
?>
<div id="bodyPan">
  <div id="bodyleftPan">
  	<h2><?php echo LANG_Multumim_ca_ne_ati_ales; ?></h2>
	<p class="greentext"></p>
	<p><?php echo LANG_Ati_fost_adaugat_in_sistem_Veti_primi_un_mail; ?></p>
  </div>
  
  <div id="bodyrightPan">
    <div id="loginPan">
		<h2><?php echo LANG_Autentificare; ?></h2>
		<form method="post" action="authenticate.php" 
	      		onsubmit="return (validateUsername(this.formUsername.value, 3)
	                && validateAlphanum(this.formPassword.value, 'Parola', true, 5));">
		
		<label>Utilizator</label><input name="formUsername" type="text" id="email" />
		<label>Parola</label><input name="formPassword" type="password" id="pass" />
		<input name="Input" type="submit" class="button" value="Intra" />
        
        <label class="forgot" style="cursor: pointer;"  onclick="document.location='forgot.php?lang=<?php echo $language;?>'"><?php echo LANG_Forgot_Password; ?></label>
        <label class="forgot" style="color: red;"><?php if (isset($_SESSION['error_msg'])) { echo $_SESSION['error_msg']; unset($_SESSION['error_msg']); } ?></label>
		
		</form>
		
	</div>
	<div id="loginBottomPan">&nbsp;</div>
	<br />
	
  </div>
</div>
<?php render_footer_site(); ?>
</body>
</html>
